package com.yuanfeng.job.job;

import com.yuanfeng.job.mapper.OperationDetailMapper;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * @ClassName DelOperationDetailJob
 * @Description 删除用户日志
 * @Author liulh
 * @Date 2023/5/17 14:27
 * @Version 1.0
 **/
public class DelOperationDetailJob implements BaseJob {

    @Autowired
    private OperationDetailMapper operationDetailMapper;

    /**
     * 定时清空用户操作日志表udb_ucenter_log_action
     *
     * @param jobExecutionContext
     * @throws JobExecutionException
     */
    @Override
    public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {
        operationDetailMapper.delete();
    }
}
